# -*- coding:utf-8 -*-
import sys
import os
import io
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')

file_name_without_extension = os.path.splitext('PDF.js 中文文档.pdf')[0]
print(sys.getdefaultencoding())
print(file_name_without_extension)